package org.zoomdev.zoom.dao.structs;


import org.zoomdev.zoom.dao.Query;

import java.io.Serializable;

public class JoinMeta implements Serializable {
    private String table;
    private String on;
    private Query.JoinType type;

    public JoinMeta() {

    }

    public JoinMeta(String table, String on, Query.JoinType type) {
        this.table = table;
        this.on = on;
        this.type = type;
    }
//
//    public static JoinMeta create(String table, String on, String type) {
//        return new JoinMeta(table, on, type);
//    }
//
//    public static JoinMeta create(String table, String on) {
//        return new JoinMeta(table, on, SqlBuilder.INNER);
//    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }


    public String getOn() {
        return on;
    }

    public void setOn(String on) {
        this.on = on;
    }

    public Query.JoinType getType() {
        return type;
    }

    public void setType(Query.JoinType type) {
        this.type = type;
    }
}
